package com.rainy.sso.common.service;

import org.springframework.stereotype.Service;
import java.util.List;
import javax.annotation.Resource;
import com.rainy.sso.common.dao.RolePermissionDao;
import com.rainy.sso.client.entity.RolePermission;
import com.rainy.sso.client.service.RolePermissionService;

/**
* @author liuqin on 2017-12-21 14:26:10
*/
@Service("rolePermissionService")
public class RolePermissionServiceImpl implements RolePermissionService {

	@Resource
	private RolePermissionDao rolePermissionDao;

    @Override
    public List<RolePermission> list(Long offset, Long limit){
		return rolePermissionDao.list(offset,limit);
	}

    @Override
    public Long count(Long offset,Long limit){
        return rolePermissionDao.count(offset,limit);
	}
	
	@Override
	public void save(RolePermission rolePermission){
		rolePermissionDao.save(rolePermission);
	}
	
	@Override
	public void update(RolePermission rolePermission){
		rolePermissionDao.update(rolePermission);
	}
	
	@Override
	public void delete(Long rid){
		rolePermissionDao.delete(rid);
	}

	@Override
	public RolePermission queryRolePermissionByUid(Long rid) {
		return rolePermissionDao.queryRolePermissionByRid(rid);
	}

	@Override
	public List<RolePermission> queryRolePermissionByRids(List<Long> rids) {
		return rolePermissionDao.queryRolePermissionByRids(rids);
	}


}
